﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace NETCommon.Domain
{
    public interface IAssemblyLoader
    {
        bool IsLoaded { get; }
        void LoadAssembly(string FileName, params object[] args);


        Object Execute(string methodName, params object[] parameters);
        Object ExecuteStaticMethod(string typeName, string methodName, params object[] parameters);

        void ExecuteAll(String strFilter);
        void ParallelExecuteAll(String strFilter);
        void ExecuteAll(Func<MethodInfo, bool> Filter);
        void ParallelExecuteAll(Func<MethodInfo, bool> Filter);
        
    }
}
